package com.suyang.syt.model.dto.app;

import com.suyang.syt.model.Citys;

public class AppCitysDTO {

	/** 城市ID */
	private long id;

	/** 行政区域名称 */
	private String name;

	/** 父行政机构ID */
	private long pid;

	/** 父行政机构名称 */
	private String pname;

	/** 该区域下培训机构的总数 */
	private long count;

	public AppCitysDTO() {
	}

	public AppCitysDTO(Citys citys) {
		this.setId(citys.getId());
		this.setName(citys.getText());
		this.setPid(citys.getPid());
		this.setPname(citys.getPtext());
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getPid() {
		return pid;
	}

	public void setPid(long pid) {
		this.pid = pid;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

}
